#ifndef SALESDIALOG_H
#define SALESDIALOG_H

#include <QDialog>
#include "mainwindow.h"
#include "ui_salesdialog.h"
#include <QCloseEvent>
#include <time.h>
#include <QDateTime>
#include <QDebug>
class MainWindow;
namespace Ui {
class SalesDialog;
}

class SalesDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SalesDialog(QWidget *parent = 0, MainWindow *_MainWindow = 0);
    ~SalesDialog();

private:
    MainWindow *sMainWindow;
    Ui::SalesDialog *ui;

protected:
     void closeEvent(QCloseEvent *event);

signals:
     void salesClose(int x);
private slots:
     void updata_time();
     void on_day_label_linkActivated(const QString &link);
     void on_time_label_linkActivated(const QString &link);
     void on_purchase_pushButton_clicked();
     void on_vip_pushButton_clicked();
     void on_exit_pushButton_clicked();
     void on_sales_pushButton_clicked();

};

#endif // SALESDIALOG_H
